Ch.1 Propositions and Truth Tables
Return to TOC
Definitions
Proposition: statement that is always True or False (but not both)
- Notation: p,q,r,s...
Theorem: a proposition that are always True, but is not direct to check
Connectors
Negation: ¬ reverse True/False value
AND: ∧
OR: ∨
Conditional statement: ⟹
Connecting two propositions gives a new proposition
Truth Table
| p | q | ∨p | p∧q | p⟹q | ¬(p⟹q) | p∧¬q |
|---|
| T | T | F | T | T | F | F |
| T | F | F | F | F | T | T |
| F | T | T | F | T | F | F |
| F | F | T | F | T | F | F |
Quantifiers
Statement x>3 is not a proposition
Statement For all real numbers x,x+1>x is a proposition
Statement There exists a pair of irrational numbers x,y such that xy is rational is a proposition
"For all" ∀, "There exists" ∃ quantifies domain
| English | Desc | Math |
|---|
| For all real numbers x, x+1>x | Above can be represented as P(x), where P is the property checked (x+1>x) and x is the dependence. | Mathematically, ∀xP(x), where x∈R |
| There exists a pair of irrational numbers x,y s.t. xy is rational. | This is P(x,y), where P is property, xy is rational, and x,y are the dependences. | Mathematically, ∃x,yP(x,y), where x,y∈R∖Q |
Propositional Functions
not a proposition; depends on variable(s)
As soon as a value is assigned to the variables, the statement becomes a proposition
"x>3" denoted xP(x), where P(x)="x>3"
Other Propositions
Converse: q⟹p
Inverse: ¬p⟹¬q
Contrapositive: ¬q⟹¬p
| p | q | p⟹q | ¬q⟹¬p |
|---|
| T | T | T | T |
| T | F | F | F |
| F | T | T | T |
| F | F | T | T |
A proposition is equivalent to its contrapositive; i.e. p⟹q can be proven by proving ¬q⟹¬p→Proof by Contrapositive (details in Ch.2)
Example 1.1 Propositional Functions
If a natural number x is greater than one, then x is even
This is a propositional function
xP(x) where x∈N and P(x)= "is greater than one"
xQ(x) where x∈N and Q(x)= "is even"
Combine to
x(P(x)⟹Q(x)) where x∈N
If x=2, the statement is true.
If x=5, the statement is false.
If x=1, the statement is true due to F⟹F.
Note: if this was ∀x∈N∖{1}x is even, it would be a false proposition- more specifically, a false quantifier
x(P(x)⟹Q(x)) is equivalent to x(P∧¬Q)
This is equivalent to ¬(P∧¬Q)=¬P∨Q, or in the case above, x(¬P(x)∨Q(x))
De Morgan's Laws
- ¬(p∧q)=¬p∨¬q
- ¬(p∨q)=¬p∧¬q
- ¬(∀xP(x))=∃x(¬P(x))
- ¬(∃xP(x))=∀x(¬P(x))
Arguments
- bunch of statements, and a conclusion
P1,P2,⋯,Pk∴t≡(P1∧P2∧⋯∧Pk)⟹t
(p⟹q)∧(q⟹r)⟹(p⟹r)
Premises, p⟹q and q⟹r, are assumed to be true.
| p | q | r | p⟹q | q⟹r | p⟹r |
|---|
| T | T | T | T | T | T |
| T | T | F | T | F | |
| T | F | T | F | T | |
| T | F | F | F | T | |
| F | T | T | | | |
| F | T | F | | | |
| F | F | T | | | |
| F | F | F | | | |
Operator Precedence Chart
| Operator | Precedence |
|---|
| ¬ | 1 |
| ∧ | 2 |
| ∨ | 3 |
| ⟹ | 4 |
| ⟺ | 5 |